
/***********************************************************************
 * Star class
 * 
 * Implements the star artifact
 *
 * Signature:
 *  public static Star create (String name, Coord position);
 *  public void install ();
 *  public void destroy ();
 *  public Coord position ();
 *  public String name ();
 *  public void report (String message);
 *  public void changePosition (Coord target);
 *  public boolean isOrbitable ();
 *  public void takeDamage (int damage);
 *  public abstract char display ();
 *  public abstract String toString ();
 ***********************************************************************/

class Star extends Artifact {

    public Star (String n, Coord p) {
	super(n,p);
    }

    public static Star create (String n, Coord p) {
	Star st = new Star(n,p);
	st.install();
	return st;
    }

    public char display () {
	return '*';
    }

    public String toString () {
	return "Star " + this.name() + " " + this.position().toString();
    }

}


